/* Includes ------------------------------------------------------------------*/
#include <MyApplication.h>

/* Private define-------------------------------------------------------------*/

/* Private variables----------------------------------------------------------*/
static void Memory_Clr(uint8_t* ,uint16_t );
/* Public variables-----------------------------------------------------------*/
Public_t Public = 
{
  Memory_Clr
};
/* Private function prototypes------------------------------------------------*/


/*
* @name   fputc
* @brief  fput映射到物理串口
* @param  ch:待发送的字符
* @retval ch:已发送的字符   
*/
int fputc(int ch,FILE* f)
{
  HAL_UART_Transmit(&huart_debug,(uint8_t*)&ch,1,0x000A);
  return ch;
}

/*
* @name   Memory_Clr
* @brief  清理缓存
* @param  pucBuffer：缓存首地址，LEN：缓存长度
* @retval None  
*/
static void Memory_Clr(uint8_t* pucBuffer,uint16_t LEN)
{
  uint16_t i;
  for(i=0;i<LEN;i++)
  {
    *(pucBuffer+i) = (uint8_t)0;
  }
}
/********************************************************
  End Of File
********************************************************/
